package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qijian.maindata.domain.ProjectProcess;
import com.qijian.maindata.domain.query.ProjectQuery;
import com.qijian.maindata.domain.vo.ProjectProcessCacheVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 开工令项目进度Mapper接口
 *
 * @author qijian
 * @date 2023-11-21
 */
public interface ProjectProcessMapper extends BaseMapper<ProjectProcess> {

    @Select("select count(0) from main_project_process WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    @Update("delete from main_project_process where version !=#{version}")
    void removeOtherData( Long version);

}
